package com.jiyun.jiyunmall.product.feign;

import com.jiyun.jiyunmall.common.annotation.LogOperation;
import com.jiyun.jiyunmall.common.utils.Result;
import com.jiyun.jiyunmall.product.dto.DiscountsDTO;
import com.jiyun.jiyunmall.product.dto.MemberPriceDTO;
import com.jiyun.jiyunmall.product.dto.SpuBoundsDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value="jiyunmall-coupon",path = "coupon")
public interface CouponFeignService {
    @PostMapping("/spubounds")
    public Result save(@RequestBody SpuBoundsDTO dto);

    @PostMapping("/skufullreduction/saveDiscountsInfo")
    Result saveDiscountsInfo(@RequestBody DiscountsDTO discountsDTO);

    @PostMapping("/memberprice")
    public Result save(@RequestBody List<MemberPriceDTO> dto);
}
